package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      项目地址实体类，项目的地址库
 * </desc>
 *
 * @createDate 2017/9/27
 */
@Data
@NoArgsConstructor
@ItlTables("project_address")
@EqualsAndHashCode(callSuper = true)
public class ProjectAddressPO extends BasePO implements Serializable{
    @ItlField(value = "address_id",logicKey = "key")
    private String addressId;                  //地址编号
    @ItlField("parent_address_id")
    private String parentAddressId;            //父级编号
    @ItlField("address_name")
    private String addressName;                //地址名称
    @ItlField("address_level")
    private Integer addressLevel;               //地址层级，层级--国家-1；省-2；市-3；区-4;二级节点在父级节点的层级上加1.
    @ItlField("initials")
    private  String initials;                   //地址大写首字母
    @ItlField("remark")
    private String remark;                      //备注


    public ProjectAddressPO(Integer id,String addressId,String parentAddressId,String addressName,Integer addressLevel,String initials){
        this.setId(id);
        this.addressId = addressId;
        this.parentAddressId = parentAddressId;
        this.addressName = addressName;
        this.addressLevel = addressLevel;
        this.initials = initials;
    }


}
